/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package taikai;

import java.io.Serializable;
import javax.swing.table.DefaultTableCellRenderer;

public class TeamOrPlayerTableCellRenderer extends DefaultTableCellRenderer implements Serializable {

    @Override
    protected void setValue(Object o) {
        if (o == null) {
            setText("");
        } else {
            setText(((TeamOrPlayer) o).getName());
        }
    }
}
